home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 32
/
Mac Magazin and MacEasy Magazine CD - Issue 32.iso
/
Multimedia
/
MIDI
/
JUNO Librarian 1.1.7
/
Sample Scripts
/
20 Change DCO PWM ON⁄OFF
< prev
next >
Wrap
Text File
|
1994-01-28
|
388b
|
17 lines
tell application "JUNO Librarian"
activate -- if needed
set x to Parameter 16 of Window "Sample"
set y to (round (x ÷ 8) rounding down)
set y to y * 8
set z to x - y -- DCO range
set y to (round (y ÷ 16) rounding down)
set y to y * 16
set x to y + z
-- select 1 of 2
set x to x + 0 -- PWM OFF
-- set x to x + 8 -- PWM ON
copy x to Parameter 16 of Window "Sample"
end tell